package com.htthorizon.powersupply.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.htthorizon.powersupply.domain.RealTimePowerOutageUser;
import com.htthorizon.powersupply.service.RealTimePowerOutageUserService;
import com.htthorizon.powersupply.mapper.RealTimePowerOutageUserMapper;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.List;

/**
* @author Brilliant
* @description 针对表【real_time_power_outage_user(用户实时停电信息)】的数据库操作Service实现
* @createDate 2025-01-16 23:32:54
*/
@Service
public class RealTimePowerOutageUserServiceImpl extends ServiceImpl<RealTimePowerOutageUserMapper, RealTimePowerOutageUser>
    implements RealTimePowerOutageUserService{

    @Override
    public void insertIngoreBatch(List<RealTimePowerOutageUser> realTimePowerOutageUsers) {
        if (!CollectionUtils.isEmpty(realTimePowerOutageUsers)) {
            this.getBaseMapper().insertIgnore(realTimePowerOutageUsers);
        }
    }
}




